public without sharing class NoContractInstrumentApplicationHandler {

	public static void updateOpportunityStage(List<NoContractInstrumentApplication__c> list_new ,Map<Id,NoContractInstrumentApplication__c>oldMap){

		Set<Id> oppSet = new Set<Id>();
		List<Opportunity> oppList = new List<Opportunity>();
		for (NoContractInstrumentApplication__c nia :list_new ) {
			NoContractInstrumentApplication__c old = oldMap.get(nia.Id);

			if(nia.stage__c == '已批准' && old.stage__c != '已批准'  ){
				//计算合同仪器的数量
				if(nia.Opportunity__c != null )ContractCalcEquipmentUtil.calcCoopEquipmentNum(nia.Opportunity__c);
				//if(nia.Opportunity__c != null)oppList.add(new Opportunity(Id= nia.Opportunity__c ,StageName ='合同签订'));
			}
			
		}
		//if(oppList.size() > 0) update oppList;


	}
    
}